﻿
using Avalonia;
using Avalonia.Controls.Primitives;
using Avalonia.Media.Imaging;

namespace KinonekoSoftware.Studio.Resources.Controls
{
    public class Avatar : TemplatedControl
    {
        public static readonly StyledProperty<Bitmap> ImageProperty = AvaloniaProperty.Register<Avatar,Bitmap>(nameof(Image));

        public static readonly StyledProperty<string> AvatarNameProperty = AvaloniaProperty.Register<Avatar,string>(nameof(AvatarName));

        public string AvatarName
        {
            get => GetValue(AvatarNameProperty);
            set => SetValue(AvatarNameProperty, value);
        }
        public Bitmap Image
        {
            get => GetValue(ImageProperty);
            set => SetValue(ImageProperty, value);
        }
    }
}